<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>正则测试</title>
	<script type="text/javascript">
		var reg1 = /[a-z]+(\d+?)/;
		var str = "aa3223aaabds33afafaaa";
		var rs1 =  str.match(reg1);
		alert(rs1);
		alert(rs1.index);
		alert(rs1.input)
		alert(rs1.length);
		
		var regResult = reg1.exec(str);
		alert(regResult);
		alert(regResult.input);
		alert(regResult.index);
		
	</script>
</head>
<body>
	
</body>
</html>